﻿/// Author:					Le Xuan Manh
/// Created:				2011-10-06
/// Last Modified:			2011-10-06

using log4net;
using NCKH.Business;

namespace ITC.Business.WebHelpers.UserRegisteredHandlers
{
    /// <summary>
    ///  
    /// </summary>
    public class DoNothingUserRegisteredHandler : UserRegisteredHandlerProvider
    {
        private static readonly ILog log
            = LogManager.GetLogger(typeof(DoNothingUserRegisteredHandler));

        public DoNothingUserRegisteredHandler()
        { }

        public override void UserRegisteredHandler(object sender, UserRegisteredEventArgs e)
        {
            //if (sender == null) return;
            if (e == null) return;
            if (e.SiteUser == null) return;
            
            // do nothing
            log.Debug("DoNothingUserRegisteredHandler called for new user " + e.SiteUser.Email);
        }
    }
}
